<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div th:replace="~{fragments/header :: header}"></div>
<h1 th:text="${title}">欢迎</h1>
<form action="/users/summit" th:action="@{/users/summit}" method="post" th:object="${userModel.user}">
   <input type="hidden" name="id" th:value="${userModel.user.id}">
    <!--<input type="hidden" name="id" th:value="${userModel.user.id}">-->
    name:<input type="text" name="name" th:value="*{name}"><br/>
    <!-- ${age} 这种形式在新增的时候可以绑定数据，但是在编辑的时候无法绑定数据 -->
    <!--age:<input type="text" name="age" th:value="${age}" value="0"><br/>-->
    age:<input type="text" name="age" th:value="*{age}" value="0"><br/>
    <input type="submit" value="提交"><br/>
</form>

<div th:replace="~{fragments/footer :: footer}"></div>
</body>
</html>